import service from '@/utils/request'
// @Tags ProductTage
// @Summary 创建productTage表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductTage true "创建productTage表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productTage/createProductTage [post]
export const createProductTage = (data) => {
  return service({
    url: '/productTage/createProductTage',
    method: 'post',
    data,
  })
}

// @Tags ProductTage
// @Summary 删除productTage表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductTage true "删除productTage表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productTage/deleteProductTage [delete]
export const deleteProductTage = (params) => {
  return service({
    url: '/productTage/deleteProductTage',
    method: 'delete',
    params,
  })
}

// @Tags ProductTage
// @Summary 批量删除productTage表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除productTage表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productTage/deleteProductTage [delete]
export const deleteProductTageByIds = (params) => {
  return service({
    url: '/productTage/deleteProductTageByIds',
    method: 'delete',
    params,
  })
}

// @Tags ProductTage
// @Summary 更新productTage表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductTage true "更新productTage表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productTage/updateProductTage [put]
export const updateProductTage = (data) => {
  return service({
    url: '/productTage/updateProductTage',
    method: 'put',
    data,
  })
}

// @Tags ProductTage
// @Summary 用id查询productTage表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductTage true "用id查询productTage表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productTage/findProductTage [get]
export const findProductTage = (params) => {
  return service({
    url: '/productTage/findProductTage',
    method: 'get',
    params,
  })
}

// @Tags ProductTage
// @Summary 分页获取productTage表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取productTage表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productTage/getProductTageList [get]
export const getProductTageList = (params) => {
  return service({
    url: '/productTage/getProductTageList',
    method: 'get',
    params,
  })
}
// @Tags ProductTage
// @Summary 不需要鉴权的productTage表接口
// @accept application/json
// @Produce application/json
// @Param data query request.ProductTageSearch true "分页获取productTage表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /productTage/getProductTagePublic [get]
export const getProductTagePublic = () => {
  return service({
    url: '/productTage/getProductTagePublic',
    method: 'get',
  })
}
